Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade pyproject-hooks to 1.2.0 #13125

Merged
merged 2 commits into from
Jan 12, 2025
Merged

Upgrade pyproject-hooks to 1.2.0 #13125

merged 2 commits into from
Jan 12, 2025

Conversation

ichard26
Copy link
Member

Towards #13103.

We may be affected by pypa/pyproject-hooks#206. PTAL.

@@ -38,4 +38,5 @@ def generate_editable_metadata(
except InstallationSubprocessError as error:
raise MetadataGenerationFailed(package_details=details) from error

assert distinfo_dir is not None
Copy link
Member Author

@ichard26 ichard26 Dec 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this should be necessary given that prepare_metadata_for_build_wheel() on the super class is typed to return str. This seems an oversight when type annotations were added to pyproject-hooks. I've asked around whether this is intentional.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See also pypa/pyproject-hooks#209 where I propose fixing prepare_metadata_for_build_editable()'s return type to str.

@ichard26
Copy link
Member Author

Ah, the pyproject-hooks issue was seemingly fixed by pypa/setuptools#4680.

@ichard26 ichard26 merged commit dafc095 into pypa:main Jan 12, 2025
31 checks passed
@ichard26 ichard26 deleted the pyproject-hooks branch January 12, 2025 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants